var showCategory={
    showCategoryInit:function () {
        sessionStorage.removeItem("orgId");
        $("#cancel").click(function(){
            loadUtil = new Load($);
            loadUtil.load({
                container:'#homeContent',
                url: application.contextPath+"/category/showCategoryPage?menuId="+menuId
            });
            return false;
        });
        $.ajax({
            url:application.contextPath+"/category/queryCategoryById",
            dataType:"json",
            type:"POST",
            data:{
                "categoryId":categoryId
            },
            success:function (res) {
                var data=res.data;
             $("#categoryName").val(data.cateName);
             $("#categoryType").val(data.cateType);
             $("#categoryLevel").val(data.level);
             $("#sn").val(data.sn);
             data.state =="0" ? $("input[type='radio'][name='state']").eq(0).attr("checked",true) : $("input[type='radio'][name='state']").eq(1).attr("checked",true);
            }
        });
    }
};


$(document).ready(function(){
    showCategory.showCategoryInit();
});